<?php include PATH_TPL."/admin/tpl.header.phtml"?>
<div class="main-container inner">
    <div class="main-content">
        <div class="container-fluid">
            <div class="row bt">
                <div class="col-lg-12 bg">
                    <ol class="breadcrumb">
                        <li class="active">
                        <i class="fa  fa-fw fa-reorder"></i>督导管理
                        </li>
                    </ol>
                </div>
            </div>
            <div class="oveseer">
            <span style="margin-left:20px;">所在部门：</span>
                <select name="department">
                    <option value="0">不限</option>
                    <?foreach($tDIDatas as $tDIRow){?>
                    <option value="<?=$tDIRow['num']?>" <?if($tDIRow['num'] == $pDepartment){echo 'selected';}?>><?=$tDIRow['introduce']?></option>
                    <?}?>
                </select>
            <? foreach($tDatas as $key => $tData){?>
            <p style="margin-left:20px"><?=$key?>:</p>
            <br>
            <table style="margin-left:150px;font-size:12px;text-align: center;">
            	<tr>
            		<th width="105" style="text-align: center">考核项目</th>
            		<th width="105" style="text-align: center">考核内容</th>
            		<th width="105" style="text-align: center">考核标准</th>
            		<th width="105" style="text-align: center">分值</th>
            		<th width="105" style="text-align: center">得分</th>
            	</tr>
                  <?foreach($tData as $key => $Data){?>
            	<tr>
            		<td><?=$Data['exam_title']?></td>
            		<td><?=$Data['exam_content']?></td>
            		<td><?=$Data['exam_stand']?></td>
            		<td><?=$Data['exam_score']?>分</td>
            		<td>
            			<select name="sum[]" id="">
                                    <option value="0">选择分数</option>
            				<option value="1">1</option>
            				<option value="2">2</option>
            				<option value="3">3</option>
            				<option value="4">4</option>
            				<option value="5">5</option>
            				<option value="6">6</option>
            				<option value="7">7</option>
            				<option value="8">8</option>
            				<option value="9">9</option>
            				<option value="10">10</option>
            			</select>
            		</td>
            	</tr>
                  <?}?>
            	<tr>
            		<td colspan="5" style="text-align: right;"><button type="button" id="save" class="btn btn-blue" style="height:30px;text-align:top;border-radius:10%;"><span style="position:relative;bottom:9px;" class="text">保存</span></button></td>
            	</tr>
            </table>
            <br>
            <?}?>
        	</div>

        <div class="subviews">
            <div class="subviews-container"></div>
        </div>
       
    </div>
    <!-- end: PAGE -->
</div>
<!-- end: MAIN CONTAINER -->
<script type="text/javascript" src="/plugins/datepicker/WdatePicker.js" charset="UTF-8"></script>
<script>
$('#search').click(function(){
    $('form').submit();
});
/*获取地址栏参数*/
function GetQuery(key){
	var search = location.search.slice(1);//得到get方式提交的查询字符串
	var arr = search.split("&");
	for(var i = 0; i < arr.length; i++){
		var ar = arr[i].split("=");
		if(ar[0] == key){
			return ar[1];
		}
	}
}
    var color="#eeeeee";
    $("#table_list tr:odd td").css("background-color",color);  //改变偶数行背景色
    /* 把背景色保存到属性中 */
    $("#table_list tr:odd").attr("bg",color);
</script>
<?php include PATH_TPL."/admin/tpl.footer.phtml"?>
